using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Web;
using System.Web.Mvc;

namespace LynxWebLog.Controllers
{
    public class XmlRpcController : Controller
    {
        [HttpPost]
        public async Task<ActionResult> Handler()
        {
            MetaWeblogManager mwMgr = new MetaWeblogManager(BlogRoot.MwlAPI);
            //await mwMgr.ProcessMetaWeblogApiCall(HttpContext.Current.Request.InputStream, HttpContext.Current.Response.OutputStream);
            await mwMgr.ProcessMetaWeblogApiCall(HttpContext.Request.InputStream, HttpContext.Response.OutputStream);
            return null;
        }
	}
}